package lt.hsu.thr;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lt.hsu.constants.MessageConstant;
import lt.hsu.web.ErrorCode;

@AllArgsConstructor
@Getter
public enum UserError implements ErrorCode {

    USERNAME_PASSWORD_ERROR(20000, MessageConstant.USERNAME_PASSWORD_ERROR),
    CREDENTIALS_EXPIRED(20001, MessageConstant.CREDENTIALS_EXPIRED),
    ACCOUNT_DISABLED(20002, MessageConstant.ACCOUNT_DISABLED),
    ACCOUNT_LOCKED(20003, MessageConstant.ACCOUNT_LOCKED),
    ACCOUNT_EXPIRED(20004, MessageConstant.ACCOUNT_EXPIRED),
    PERMISSION_DENIED(20005, MessageConstant.PERMISSION_DENIED),
    ;

    private final long code;

    private final String message;
}
